@layout("/common/_container.html"){
<link href="https://pynnn.oss-cn-hangzhou.aliyuncs.com/choice_user.css?v=20200718" rel="stylesheet">
<div style="display: none">
    <input type="hidden" id="customerIdValue" value="${customerId}">
    <input type="hidden" id="yellowNumberValue" value="${yellowNumber}">
</div>
<div>
    <div style="background: #6090b8;color: white;padding: 5px 10px;">修改黄页编号</div>
    <div style="padding: 20px;">
        <span>黄页编号</span>
        <input type="text" id="yellow" value="${yellowNumber}" style="margin-left: 10px;padding-left: 5px;">
    </div>
    <div class="btnBox">
        <button class="btn" type="button" id="numberedSubmission">提交</button>
        <button class="btn" type="button" onclick="parent.layer.close(parent.layer.getFrameIndex(window.name))">取消</button>
    </div>
</div>

<script>
    $("#numberedSubmission").click(function () {
        var customerId = $("#customerIdValue").val();
        var yellow = $("#yellow").val();
        if(yellow ==null || yellow ==""){
            alert("请输入黄页编号");
            return;
        }
        $.ajax({
            url: Feng.ctxPath + "/doctorLooked/updateNumber",
            type: "post",
            data: {
                customerId: customerId,
                yellowNumber: yellow
            },
            success: function (data) {
                Feng.success("黄页编号修改成功!");
                window.parent.$('#calendar').fullCalendar('refetchEvents');
                parent.layer.close(parent.layer.getFrameIndex(window.name));
            },
            error: function (data) {
            }
        });
    })
</script>
@}